﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MenuVendingMachine
{
    public class VendingMachine
    {

        public int RowPos { get; set; }
        public int ColPos { get; set; }

        static void Main(string[] args)
        {
            VendingMachine vendingMachine = new VendingMachine();
            vendingMachine.Init();
            vendingMachine.EnterMainLoop();
        }

        private void Init()
        {
            Console.ForegroundColor = ConsoleColor.DarkYellow; Console.BackgroundColor = ConsoleColor.Gray;
            Console.WriteLine("KitKat   (65p)");
            Console.WriteLine("Mars Bar (65p)");
            Console.WriteLine("Bounty   (70p)");
        }


        private void EnterMainLoop()
        {
            while (true)
            {
                var ch = Console.ReadKey(false).Key;
                switch (ch)
                {
                    case ConsoleKey.UpArrow:
                        HighlightStartGame();
                        break;

                    case ConsoleKey.DownArrow:
                        HighlightEndGame();
                        break;
                }
            }
        }
    }
}
